<template>
	<ul class="todo-main">
		<ConsumItem 
			v-for="todoObj in fillTodo"
			:key="todoObj.id" 
			:todo="todoObj" 
			:searchWord="searchWord"
			:checkTodo="checkTodo"
			:showFlag="showFlag"
			:deleteTodo="deleteTodo"
		/>
	</ul>
</template>

<script>
	import ConsumItem from './ConsumItem'

	export default {
		name:'ConsumList',
		components:{ConsumItem},
		//声明接收App传递过来的数据，其中todos是自己用的，checkTodo和deleteTodo是给子组件MyItem用的
		props:['fillTodo','checkTodo','deleteTodo','searchWord','showFlag']
	}
</script>

<style scoped>
	/*main*/
	.todo-main {
		margin-left: 0px;
		margin-top:0px;
		border: 1px solid rgb(79, 102, 128);
		border-radius: 2px;
		padding: 0px;
		padding-top:10px;
		
	}
</style>